Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor with PlutoDevMacros 0.6.0 #31

Closed
wants to merge 4 commits into from
Closed

Conversation

disberd
Copy link
Member

@disberd disberd commented Oct 9, 2023

This is a significant internal refactor of the code in order to leverage the new script/html combining functionality from PlutoDevMacros v0.6

It is now easier to specify how to render PlutoPlot objects both inside and outside Pluto, opening the possibility of also rendering the plots correctly when not using Pluto.

The plot will in principle render automatically in the correct way depending on whether it's shown inside or outside Pluto.

PlutoPlot objects are now also rendered in the Plot pane in VSCode while still providing most of the functionality of PlutoPlotly that are not in PlotlyBase (like easily adding JS code or listeners).

With this rewrite, it is now easy to directly print a fully standalone hml document that contains the plot using the print_html function defined in PlutoDevMacros and extended here for PlutoPlot objects. This will fix #12

@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Attention: 22 lines in your changes are missing coverage. Please review.

Comparison is base (ff94466) 87.37% compared to head (54df148) 81.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
- Coverage   87.37%   81.66%   -5.72%     
==========================================
  Files          11       12       +1     
  Lines         206      240      +34     
==========================================
+ Hits          180      196      +16     
- Misses         26       44      +18     
Files Coverage Δ
src/PlutoPlotly.jl 100.00% <ø> (ø)
src/default_scriptcontents.jl 100.00% <100.00%> (ø)
src/local_plotly_library.jl 92.72% <100.00%> (ø)
src/main_struct.jl 100.00% <ø> (ø)
src/basics.jl 70.00% <50.00%> (-5.00%) ⬇️
src/js_helpers.jl 53.12% <22.22%> (-6.14%) ⬇️
src/show.jl 56.25% <56.25%> (-43.75%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@disberd
Copy link
Member Author

disberd commented Aug 5, 2024

Closing this as the current way forward is to separate the JS part into a separate JS library (see #50)

@disberd disberd closed this Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Download interactive HTML plot
1 participant